Provides methods for creating views, for templating, returning JSON, and redirects


Methods

Name Returns Notes Example
templateView ( template ) TemplateView
jsonView ( attribute ) JsonView
jsonView ( status, message ) JsonView
jsonObjectView ( o ) JsonView
redirectView ( uri ) RedirectView
redirectView ( uri, permanent ) RedirectView
textTemplateView ( template, contentType ) TextTemplateView
fileView ( hash, contentType ) FileHashView
textView ( text ) TextView
textView ( text, contentType ) TextView
jsonResult ( result ) JsonResult
jsonResult ( result, message ) JsonResult
jsonResult ( result, message, nextHref ) JsonResult
searchResponseView ( r ) SearchResponseView
csvView ( rows ) CsvView

Ask a question, or offer an answer